package com.mkh.st.admin.api.feign;

import com.mkh.st.admin.api.entity.StFinancialSet;
import com.mkh.st.admin.api.vo.SiteInfoVO;
import com.mkh.st.admin.api.vo.SysBusinessSetVO;
import com.mkh.st.common.core.constant.ServiceNameConstants;
import com.mkh.st.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "sysBusinessEntityProvider", value = ServiceNameConstants.UPMS_SERVICE,url ="${st.adminUrl:}")
public interface ISysBusinessEntityProvider {
	/**
	 * 业务线查询
	 * @param
	 * @return
	 */
	@GetMapping("/site/provider/getSiteInfo")
	R<List<SiteInfoVO>> getSiteInfo(@RequestParam("menuCode") String menuCode);


	@GetMapping("/site/provider/getSiteInfoById")
	R<SiteInfoVO> getSiteInfoById(@RequestParam("siteId") Long siteId);



	@GetMapping("/site/provider/getSysBusinessSet")
	R<SysBusinessSetVO> getSysBusinessSet(@RequestParam("siteId") Long siteId);

	@GetMapping("/site/provider/getStFinancialSet")
	R<StFinancialSet> getStFinancialSet();
}
